package com.glsc.ngateway.opmanage.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;
import org.apache.commons.lang.StringUtils;

/**
 * 流程节点角色定义
 */
@Getter
@AllArgsConstructor
public enum OutSystemFirstLevelEnum {
    //设备模块管理员(只控制权限，不参与流程)
    DEPT1("烟台迎春大街证券营业部"),
    DEPT2("大连星海广场证券营业部"),
    DEPT3("宜兴人民南路证券营业部"),
    DEPT4("宜兴丁蜀镇紫砂路证券营业部"),
    DEPT5("宜兴新城路证券营业部"),
    DEPT6("宜兴张渚镇渚钢路证券营业部"),
    DEPT7("宜兴荆邑中路证券营业部");


    private final String deptName;


    public static boolean isFirstLevelDept(String deptName) {
        if (StringUtils.isBlank(deptName)) {
            return false;
        }
        for (OutSystemFirstLevelEnum archiveEnum : OutSystemFirstLevelEnum.values()) {
            if (deptName.equals(archiveEnum.getDeptName())) {
                return true;
            }
        }
        return false;
    }
}
